package io.bdmc.modules.bss.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import io.bdmc.common.utils.MyPage;
import io.bdmc.modules.bss.entity.FibreCablePoint;
import io.bdmc.modules.bss.mapper.FibreCablePointMapper;
import io.bdmc.modules.bss.service.IFibreCablePointService;

import java.util.HashMap;
import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 缆段点 服务实现类
 * </p>
 *
 * @author ping
 * @since 2020-07-02
 */
@Service
public class FibreCablePointServiceImpl extends ServiceImpl<FibreCablePointMapper, FibreCablePoint>
        implements IFibreCablePointService {
    @Autowired
    FibreCablePointMapper _fibrecablepointMapper;

    @Override
    public MyPage<FibreCablePoint> mySelectPage(MyPage<FibreCablePoint> myPage) {
        return _fibrecablepointMapper.mySelectPage(myPage);
    }

    @Override
    public List<HashMap<String, Object>> tpList() {
        return _fibrecablepointMapper.tpList();
    }

    @Override
    public List<FibreCablePoint> selectByFibreId(Integer fibreId) {
        return list(new QueryWrapper<FibreCablePoint>().eq("fibre_id", fibreId));
    }


}
